package com.qf.j2205.service;

import com.qf.j2205.entity.BackUp;
import com.qf.j2205.entity.vo.BackUpVo;

import java.util.List;

/**
 * @ClassName BankUpService
 * @Description TODO
 * @Author Windy
 * @Date 2022/8/18 15:11
 * @Version 1.0
 **/
public interface BackUpService {
    /**
     * 向数据库中添加数据
     * @param back
     * @return
     */
    public boolean addBackup(BackUp back);


    /**
     * 查询全部
     *
     * @return
     */
    public List<BackUpVo> findAll();

    /**
     * 根据id删除
     * @param id
     * @return
     */
    public boolean deleteBackup(int id);
}
